package de.backtomedieval.buildings;

import de.backtomedieval.R;
import de.backtomedieval.game.Costs;
import de.backtomedieval.game.Earning;
import de.backtomedieval.main.Game;

public class Quarry extends AbstractBuilding {

	private static int _healthpoints = 200;
	private static int _defense = 15;
	private static Earning earnSetting = null;
	private static Costs costSetting = null;
	
	
	public Quarry() {
		super(_healthpoints, _defense);
		if (earnSetting == null) {
			earnSetting = new Earning();
			earnSetting.setStoneEarning(1, 1);
			earnSetting.setRepeatRound(1);
		}
		if (costSetting == null){
			costSetting = new Costs();
			costSetting.setLumberCost(10);
			costSetting.setStoneCost(20);
			costSetting.setFoodSupply(1);
		}
		this.setEarn(earnSetting);
		this.setCosts(costSetting);
		this.setRue(earnSetting.getRepeatRound());
	}

	
	@Override
	int getDefenseBonus() {
		return 0;
	}
	@Override
	int getHealthpointsBonus() {
		return 0;
	}
	@Override
	int getIncomeBonus() {
		return 0;
	}
	
	
	@Override
	public String getName() {
		return Game.getString(R.string.building_quarry);
	}
	
	@Override
	public int getImage() {
		return R.drawable.quarry;
	}

}
